<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="__PUBLIC__/js/jquery-easyui-1.5.1/themes/default/easyui.css">
    <link rel="stylesheet" href="__PUBLIC__/js/jquery-easyui-1.5.1/themes/icon.css">
    <link rel="stylesheet" href="__PUBLIC__/Css/public.css">

    <script src="__PUBLIC__/js/jquery-easyui-1.5.1/jquery.min.js"></script>
    <script src="__PUBLIC__/js/jquery-easyui-1.5.1/jquery.easyui.min.js"></script>
    <script src="__PUBLIC__/js/jquery-easyui-1.5.1/locale/easyui-lang-zh_CN.js"></script>
    <script src="__PUBLIC__/kindeditor-4.1.10/kindeditor.js"></script>
    <script src="__PUBLIC__/kindeditor-4.1.10/lang/zh_CN.js"></script>
    <title>Title</title>
    <script>
        $(function(){

checkmemcheckde();
checkstation();



        });

        /*
          获取选择的member并且赋予工时
         */
        function checkmemcheckde() {
            var sss={$memids};

            for (var key in sss){
            var id="#member_check_"+key;
                $(id).attr('checked','checked')
                var gsvalueid="#member_value_"+key;
               // alert(sss[key]);
                $(gsvalueid).val(sss[key]);

            }

        }
        function checkstation() {
            var stationid={$stationid};
            $("#stations").combobox('select',stationid);
        }
    </script>
</head>

<body>
<form action="{:U('home/record/add_post')}" method="post">
    <table  class="table" style="width: 100%" >

        <tr>
            <td style="width: 100px ">站点</td>
            <td style="width: 100px ;height: auto">
                <select  style="width: 100%  " id="stations" class="easyui-combobox"   name="station"   id="station_sel">
                    <foreach name="stationlist" item="vo">
                        <option id="station_{$vo.id}"  value="{$vo.id}">{$vo.name} </option>


                    </foreach>
                </select>
            </td>
            <td style="width: 100px ">时间</td>
            <td >
                <p>开始时间<input  class="easyui-datetimebox" data-options="panelHeight:'190px'" name="starttime"  style="float: left;display: block"  ></p>

                结束时间<input class="easyui-datetimebox"  style="float: left" name="donetime" >

            </td>
        </tr>
        <tr>
            <td>工作人员:</td>
            <td colspan="3" style="height: 50px">
                <ul style="width: auto">
                    <foreach name="memlist" item="vo">
                        <li style="width: 150px;height: 40px; text-align:left;float: left">
                            <div style="padding: 10px">
                                <input type="checkbox" value="{$vo.id}" id="member_check_{$vo.id}" name="member[]" width="50%" style="padding:30px;display: inline-block;">{$vo.name}
                                <!--<input class="easyui-slider" value="12"  style="float: right;width: 70px"-->
                                <!--data-options="showTip:true,rule:[0,'|',5]" />-->
                                <!--<span style="float: right;width:50%" id="member_value_{$vo.id}">-->
                                     <!--<input class="easyui-numberbox"   data-options="prompt:'输入工时...'" precision="1" name="member_value[]" style="width: 80px; float: right">-->
                                <!--</span>-->
                                <span style="float: right;width:50%" id="member_value_{$vo.id}">
                                     <input class="easyui-numberbox"  data-options="prompt:'输入工时...',max:10,min:0"
                                            precision="1"
                                            name="member_value[]" style="width: 80px; float: right">
                                </span>
                                <!--<input type="easyui-numberbox" style="width: 50px; float: right" placeholder="输入工时..." id="member_value_{$vo.id}">-->

                            </div>
                        </li>
                    </foreach>
                </ul>

            </td>
        </tr>
        <tr>
            <td>内容:</td>
            <td colspan="3" style="height: 100px">
                <textarea name="content" id=""  cols="30" rows="7"></textarea>
            </td>
        </tr>
        <tr>
            <td colspan="4" > <input type="submit" class="easyui-linkbutton l-btn l-btn-small" width="78px" value="提交"></td>

        </tr>
    </table>
</form>

</body>
</html>